const Mock = require("mockjs");

const { goodsList, SlideList, orderList,doctorList,inforList } = Mock.mock({
  "inforList|1":[
    {
      id:"@id",
      img:"@/images/huasheng.png",
      title1:'ctitle(30)',
      h3:"ctitle(10)",
      title2:'ctitle(30)',
    }
  ],
  "doctorList|10":[
    {
      id:"@id",
      // img:"@image(100x140,@color)",
      img: 'https://robohash.org/@id',
      title:"@cname(2,3)",
      address: "@city(true)",
      "favorable|10-100": 0,
      "price|100-400": 0,
    }
  ],
  "goodsList|50": [
    {
      id: "@id",
      title: "@ctitle",
      "img|3-5": ["@image(100x100,@color)"],
      word: "@cword(10,20)",
      "price|300-1000": 0,
      "sell|1-1000000": 1,
      count: 0,
      state: false,
    },
  ],
  "SlideList|8": [
    {
      "title|+1": [
        "热门",
        "推荐",
        "团团购",
        "盒马生鲜",
        "拼夕夕",
        "数码",
        "家电",
        "家居家纺",
      ],
      "children|8-10": [
        {
          id: "@id",
          title: "@ctitle",
          "img|3-5": ["@image(100x100,@color)"],
          word: "@cword(10,20)",
          "price|300-1000": 0,
          "sell|1-1000000": 1,
          count: 0,
          state: false,
        },
      ],
    },
  ],
  "orderList|50": [
    {
      id: "@id",
      name: "@cname",
      tel: /^1[3-9]\d{9}$/,
      word: "@cword(10,20)",
      "state|1": ["待付款", "待发货", "待收货", "待评价", "已完成"],
      img: "@image(30x30,@color,@color)",
      address: "@city(true)",
      "price|100-500": 0,
    },
  ],
});

module.exports = { goodsList, SlideList, orderList,doctorList,inforList };
